function ulen(str)
{
  regex = new RegExp("^[\u4e00-\u9fa5|\uFF00-\uFFFF]+$");
  var nLength = str.length;
  for(var i=0; i<str.length; i++)
  {
  if (regex.test(str.substring(i,i+1)))  
		nLength++;
  }
  return nLength;

}
function ms2date(m){

	var d, s,localOffset; 
	d = new Date(); 
	localOffset = d.getTimezoneOffset() * 60000; 
	d.setTime(m+localOffset); 
/*
	M=d.getMonth()+1;
	if(M<10){M="0"+M;}
	Da=d.getDate();
	if(Da<10){Da="0"+Da;}
	alert(Da);
	H=d.getHours();
	if(H<10){H="0"+H;}
	MI=d.getMinutes();
	if(MI<10){MI="0"+MI;}
	S=d.getSeconds();
	if(S<10){S="0"+S;}
	s = d.getFullYear() + "-" + M + "-" + D + " " + H + ":" + MI + ":" + S; 
*/
	s = d.getFullYear() + "-" + (d.getMonth()+1) + "-" + d.getDate() + " " + d.getHours() + ":" + d.getMinutes() + ":" + d.getSeconds(); 
	//alert(d.toLocaleString());
	return s.toLocaleString();
}
